
 <!DOCTYPE HTML>
<html>
<head><meta name="generator" content="Hexo 3.9.0">
  <meta charset="UTF-8">
  
    <title>Zong&#39;s blog</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=3, minimum-scale=1">
    
    <meta name="author" content="Zong">
    
    
    
    
    
    <link rel="icon" href="/img/favicon.ico">
    
    
    <link rel="apple-touch-icon" href="/img/pacman.jpg">
    <link rel="apple-touch-icon-precomposed" href="/img/pacman.jpg">
    
    <link rel="stylesheet" href="/css/style.css">
</head>
</html>
  <body>
    <header>
      <div>
		
			<div id="imglogo">
				<a href="/"><img src="/img/logo.svg" alt="Zong&#39;s blog" title="Zong&#39;s blog"/></a>
			</div>
			
			<div id="textlogo">
				<h1 class="site-name"><a href="/" title="Zong&#39;s blog">Zong&#39;s blog</a></h1>
				<h2 class="blog-motto">日常积累，技术分享</h2>
			</div>
			<div class="navbar"><a class="navbutton navmobile" href="#" title="Menu">
			</a></div>
			<nav class="animated">
				<ul>
					<ul>
					 
						<li><a href="/">Home</a></li>
					
						<li><a href="/archives">Archives</a></li>
					
						<li><a href="/categories/运维">运维</a></li>
					
						<li><a href="/categories/容器架构">容器架构</a></li>
					
					<li>
					
					<form class="search" action="//baidu.com/s" method="get" accept-charset="utf-8">
						<label>Search</label>
						<input type="text" id="search" name="wd" autocomplete="off" maxlength="20" placeholder="Search" />
                        <input name=tn type=hidden value="bds">
                        <input name=cl type=hidden value="3">
                        <input name=ct type=hidden value="2097152">
						<input type="hidden" name="si" value="www.lstop.pub">
					</form>
					
					</li>
				</ul>
			</nav>			
</div>

    </header>
    

    <div id="container">
      <div id="main">

  <section class="post" itemscope itemprop="blogPost">
  
    <a href="/2020/09/18/elasticsearch-reindex/" title="elasticsearch reindex" itemprop="url">
  
    <h1 itemprop="name">elasticsearch reindex</h1>
    
     
           <p itemprop="description" >reindex顾名思义是重建index的意思，因为一些原因，之前的index参数、mapping等设置需要优化、不合理时就需要reindex。典型的原因是设置shard数量，当index增长或者业务量增长需要扩容集群，重新设置shard可以进一步优化性能。reindex基本操作比</p>
        
    
    <time datetime="2020-09-18T07:55:51.000Z" itemprop="datePublished">2020-09-18</time>
  </a>
</section>

  <section class="post" itemscope itemprop="blogPost">
  
    <a href="/2020/09/04/elasticsearch-template及index的优化参数/" title="elasticsearch template及index的优化参数" itemprop="url">
  
    <h1 itemprop="name">elasticsearch template及index的优化参数</h1>
    
     
           <p itemprop="description" >elasticsearch的template是很有用，它描述了index的mapping（类似表结构）、setting参数优化，特别是用日期分割index的情况，提前建好template能在自动创建index的时候套用上。一般日志类、自动创建多个同类index等情况推荐在创建in</p>
        
    
    <time datetime="2020-09-04T10:12:39.000Z" itemprop="datePublished">2020-09-04</time>
  </a>
</section>

  <section class="post" itemscope itemprop="blogPost">
  
    <a href="/2020/08/28/elasticsearch备份到hdfs/" title="elasticsearch备份到hdfs" itemprop="url">
  
    <h1 itemprop="name">elasticsearch备份到hdfs</h1>
    
     
           <p itemprop="description" >前期准备安装hdfs插件elasticsearch快照备份到hdfs，先安装hdfs插件，可以到官方下载zip格式，或者线上安装官方安装文档
1sudo bin/elasticsearch-plugin install repository-hdfs

建立快照库然后建立hdfs</p>
        
    
    <time datetime="2020-08-28T06:11:48.000Z" itemprop="datePublished">2020-08-28</time>
  </a>
</section>

  <section class="post" itemscope itemprop="blogPost">
  
    <a href="/2020/05/19/kubelet-config和认证/" title="kubelet config和认证" itemprop="url">
  
    <h1 itemprop="name">kubelet config和认证</h1>
    
     
           <p itemprop="description" >Kubelet Configurationkubelet是安装在k8s节点上负责启动销毁容器的重要组件，其启动参数我一直是通过systemctl使用参数形式传入的，但是根据文档和其自身help的说明来看，很多参数标注了DEPRECATED。

例如：      –fail-swa</p>
        
    
    <time datetime="2020-05-19T06:04:30.000Z" itemprop="datePublished">2020-05-19</time>
  </a>
</section>

  <section class="post" itemscope itemprop="blogPost">
  
    <a href="/2020/01/08/ubuntu18下的coredns踩坑/" title="ubuntu18下的coredns踩坑" itemprop="url">
  
    <h1 itemprop="name">ubuntu18下的coredns踩坑</h1>
    
     
           <p itemprop="description" >今天踩了个坑，记录一下现象是容器不能连通外网，直觉检查网络连通性，发现curl百度失败，curl百度ip成功。

检查coredns配置，最近没有修改
联想到最近1个节点使用了ubuntu18
查看coredns刚好分配到该节点
检查改节点本身能连通外网，nslookup正常
定</p>
        
    
    <time datetime="2020-01-08T08:19:31.000Z" itemprop="datePublished">2020-01-08</time>
  </a>
</section>

  <section class="post" itemscope itemprop="blogPost">
  
    <a href="/2020/01/08/容器界新势力cri-o/" title="容器界新势力cri-o" itemprop="url">
  
    <h1 itemprop="name">容器界新势力cri-o</h1>
    
     
           <p itemprop="description" >一 介绍CRI-O - OCI-based implementation of Kubernetes Container Runtime Interface这是cri-o的github标题，符合OCI基准实现的Kubernetes容器运行时接口，从这个标题很容易看出，这是一个专门</p>
        
    
    <time datetime="2020-01-08T06:29:46.000Z" itemprop="datePublished">2020-01-08</time>
  </a>
</section>

  <section class="post" itemscope itemprop="blogPost">
  
    <a href="/2019/12/31/calico-tunl-ip冲突/" title="calico tunl ip冲突" itemprop="url">
  
    <h1 itemprop="name">calico tunl ip冲突</h1>
    
     
           <p itemprop="description" >集群新增2个node，完了之后发现网络有问题，其中一个节点和pod网络不通，经过一轮排查，发现新增的两个node分配的tunl0 ip是一样的，就是出现问题的原因。如图：
通过 calicoctl get node 和 kubectl get no 对比发现节点域名不一致
解决方</p>
        
    
    <time datetime="2019-12-31T07:33:51.000Z" itemprop="datePublished">2019-12-31</time>
  </a>
</section>

  <section class="post" itemscope itemprop="blogPost">
  
    <a href="/2019/11/18/k8s报错记录-NetworkPlugin-cni-failed-to-set-up-pod-xxx-network-Unauthorized/" title="k8s报错记录  NetworkPlugin cni failed to set up pod xxx network: Unauthorized" itemprop="url">
  
    <h1 itemprop="name">k8s报错记录  NetworkPlugin cni failed to set up pod xxx network: Unauthorized</h1>
    
     
           <p itemprop="description" >k8s集群某个节点出现不能启动pod的情况，其他节点正常。从错误信息很容易联想到rbac的权限问题，查询节点syslog、kubelet日志、calico日志等但没有明显指示。重新对比环境的calico rbac配置和官方rbac配置，没有发现异常。完整报错信息：
1234567</p>
        
    
    <time datetime="2019-11-18T05:42:11.000Z" itemprop="datePublished">2019-11-18</time>
  </a>
</section>

  <section class="post" itemscope itemprop="blogPost">
  
    <a href="/2019/10/21/比较6的python语法/" title="比较6的python语法" itemprop="url">
  
    <h1 itemprop="name">比较6的python语法</h1>
    
     
           <p itemprop="description" >收集整理一下python的语法，不断更新
##构建子列表
包含多个字典的列表，用其中字典元素构建子列表
1234d = [&amp;#123;&amp;apos;name&amp;apos;:&amp;apos;傅家俊&amp;apos;, &amp;apos;age&amp;apos;: 26&amp;#125;, &amp;#123;&amp;apos;</p>
        
    
    <time datetime="2019-10-21T01:27:28.000Z" itemprop="datePublished">2019-10-21</time>
  </a>
</section>

  <section class="post" itemscope itemprop="blogPost">
  
    <a href="/2019/08/15/K8s-HPA/" title="K8s HPA" itemprop="url">
  
    <h1 itemprop="name">K8s HPA</h1>
    
     
           <p itemprop="description" >HPA全称Horizontal Pod Autoscaling，是K8s实现pod自动水平扩容缩容的特性，这个特性使整个kubernetes集群马上高大上起来了。要使用HPA也不是这么简单的，HPA api分v1、v2beta1、v2bate2三种，v1只支持通过CPU衡量扩缩容</p>
        
    
    <time datetime="2019-08-15T09:05:43.000Z" itemprop="datePublished">2019-08-15</time>
  </a>
</section>


  <nav id="page-nav" class="clearfix">
    <span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><a class="page-number" href="/page/3/">3</a><a class="page-number" href="/page/4/">4</a><a class="extend next" rel="next" href="/page/2/">Next &raquo;</a>
  </nav>

</div>
      <div class="openaside"><a class="navbutton" href="#" title="Show Sidebar"></a></div>

<div id="asidepart">
<div class="closeaside"><a class="closebutton" href="#" title="Hide Sidebar"></a></div>
<aside class="clearfix">

  
<div class="tagslist">
	<p class="asidetitle">Tags</p>
		<ul class="clearfix">
		
			<li><a href="/tags/Airtest/" title="Airtest">Airtest<sup>1</sup></a></li>
		
			<li><a href="/tags/DNS/" title="DNS">DNS<sup>1</sup></a></li>
		
			<li><a href="/tags/GitLab/" title="GitLab">GitLab<sup>1</sup></a></li>
		
			<li><a href="/tags/K8s/" title="K8s">K8s<sup>8</sup></a></li>
		
			<li><a href="/tags/Linux/" title="Linux">Linux<sup>1</sup></a></li>
		
			<li><a href="/tags/MongoDB/" title="MongoDB">MongoDB<sup>2</sup></a></li>
		
			<li><a href="/tags/OpenWrt/" title="OpenWrt">OpenWrt<sup>1</sup></a></li>
		
			<li><a href="/tags/Python/" title="Python">Python<sup>2</sup></a></li>
		
			<li><a href="/tags/RabbitMQ/" title="RabbitMQ">RabbitMQ<sup>1</sup></a></li>
		
			<li><a href="/tags/calico/" title="calico">calico<sup>1</sup></a></li>
		
			<li><a href="/tags/cdn/" title="cdn">cdn<sup>1</sup></a></li>
		
			<li><a href="/tags/docker/" title="docker">docker<sup>3</sup></a></li>
		
			<li><a href="/tags/docker-registry/" title="docker registry">docker registry<sup>1</sup></a></li>
		
			<li><a href="/tags/elasticsearch/" title="elasticsearch">elasticsearch<sup>3</sup></a></li>
		
			<li><a href="/tags/elk/" title="elk">elk<sup>3</sup></a></li>
		
			<li><a href="/tags/k8s/" title="k8s">k8s<sup>3</sup></a></li>
		
			<li><a href="/tags/kubernetes/" title="kubernetes">kubernetes<sup>1</sup></a></li>
		
			<li><a href="/tags/nginx/" title="nginx">nginx<sup>1</sup></a></li>
		
			<li><a href="/tags/python/" title="python">python<sup>1</sup></a></li>
		
			<li><a href="/tags/tomcat/" title="tomcat">tomcat<sup>1</sup></a></li>
		
		</ul>
</div>


  <div class="linkslist">
  <p class="asidetitle">Links</p>
    <ul>
      <li><a href="http://www.v2ex.com/?r=zong400" target="_blank" title="V2EX">V2EX</a></li>
      <li><a href="http://hexo.io" target="_blank" title="Hexo">Hexo</a></li>
	  <li><a href="https://promotion.aliyun.com/ntms/yunparter/invite.html?userCode=s0bh6uzq" target="_blank" title="阿里云">阿里云</a></li>
	  <li><a href="https://cloud.tencent.com/redirect.php?redirect=1014&cps_key=5bd9deb84d4d9f34b65fb934e12d03e3&from=console" target="_blank" title="腾讯云">腾讯云</a></li>
    </ul>
</div>


</aside>
</div>
    </div>
    <footer><div id="footer" >
	
	
	<div class="social-font" class="clearfix">
		
		
		
		
	</div>
		<p class="copyright">Hosted by <a href="https://pages.coding.me/" target="_blank" title="Coding Pages">Coding Pages</a></p>
		<p class="copyright">Powered by <a href="http://hexo.io" target="_blank" title="hexo">hexo</a> and Theme by <a href="https://github.com/wizicer/iceman" target="_blank" title="Iceman">Iceman</a> © 2020 
		
		<a href="http://www.lstop.pub" target="_blank" title="Zong">Zong</a>
		
		</p>
</div>
</footer>
    <script src="//cdn.staticfile.org/jquery/2.1.0/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){ 
  $('.navbar').click(function(){
    $('header nav').toggleClass('shownav');
  });
  var myWidth = 0;
  function getSize(){
    if( typeof( window.innerWidth ) == 'number' ) {
      myWidth = window.innerWidth;
    } else if( document.documentElement && document.documentElement.clientWidth) {
      myWidth = document.documentElement.clientWidth;
    };
  };
  var m = $('#main'),
      a = $('#asidepart'),
      c = $('.closeaside'),
      o = $('.openaside');
  $(window).resize(function(){
    getSize(); 
    if (myWidth >= 1024) {
      $('header nav').removeClass('shownav');
    }else
    {
      m.removeClass('moveMain');
      a.css('display', 'block').removeClass('fadeOut');
      o.css('display', 'none');
        
    }
  });
  c.click(function(){
    a.addClass('fadeOut').css('display', 'none');
    o.css('display', 'block').addClass('fadeIn');
    m.addClass('moveMain');
  });
  o.click(function(){
    o.css('display', 'none').removeClass('beforeFadeIn');
    a.css('display', 'block').removeClass('fadeOut').addClass('fadeIn');      
    m.removeClass('moveMain');
  });
  $(window).scroll(function(){
    o.css("top",Math.max(80,260-$(this).scrollTop()));
  });
});
</script>










  </body>
 </html>

